package com.guaoran.spring.demo.action;

import com.guaoran.spring.demo.bean.Demo;
import com.guaoran.spring.demo.service.DemoService;

/**
 * @author : 孤傲然
 * @Description :
 * @date :2018/6/2 15:14
 */
public class DemoAction {
    private DemoService demoService;
    public String getDemoById(Long id){
        Demo demo = demoService.getDemoById(id);
//        System.out.println(demo);
        return demo.toString();
    }


    public DemoService getDemoService() {
        return demoService;
    }

    public void setDemoService(DemoService demoService) {
        this.demoService = demoService;
    }
}
